package cn.xpf.study.dao;

import cn.xpf.study.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Create on 2021/5/15
 *
 * @author shuxinsheng@qiyi.com
 **/
@Mapper
public interface UserMapper {

    @Select("select * from user where username=#{username}")
    User findOneByUsername(@Param("username") String username);

}
